package com.zscat.mallplus.qsg;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("qsg_teaching_assistantorder")
public class QsgTeachingAssistantorder implements Serializable {
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column qsg_teaching_assistantorder.id
     *
     * @mbggenerated
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column qsg_teaching_assistantorder.assistant_id
     *
     * @mbggenerated
     */
    @TableField("assistant_id")
    private Long assistantId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column qsg_teaching_assistantorder.assistant_name
     *
     * @mbggenerated
     */
    @TableField("assistant_name")
    private String assistantName;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column qsg_teaching_assistantorder.member_id
     *
     * @mbggenerated
     */
    @TableField("member_id")
    private Long memberId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column qsg_teaching_assistantorder.order_status
     *
     * @mbggenerated
     */
    @TableField("order_status")
    private Integer orderStatus;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column qsg_teaching_assistantorder.order_sn
     *
     * @mbggenerated
     */
    @TableField("order_sn")
    private String orderSn;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column qsg_teaching_assistantorder.create_datetime
     *
     * @mbggenerated
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_datetime")
    private Date createDatetime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column qsg_teaching_assistantorder.store_id
     *
     * @mbggenerated
     */
    @TableField("store_id")
    private Long storeId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column qsg_teaching_assistantorder.price
     *
     * @mbggenerated
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column qsg_teaching_assistantorder.start_time
     *
     * @mbggenerated
     */
    @TableField("start_time")
    private String startTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column qsg_teaching_assistantorder.end_time
     *
     * @mbggenerated
     */
    @TableField("end_time")
    private String endTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column qsg_teaching_assistantorder.store_name
     *
     * @mbggenerated
     */
    @TableField("store_name")
    private String storeName;

    @TableField("prepay_id")
    private String prepayId;

    @TableField(exist = false)
    private QsgTeachingAssistant teachingAssistant;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table qsg_teaching_assistantorder
     *
     * @mbggenerated
     */
    private static final long serialVersionUID = 1L;

}